package org.dromara.run.domain.bo;

import org.dromara.common.core.validate.OtherGroup;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.run.domain.Application;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 免跑申请表业务对象 phy_run_application
 *
 * @author Lion Li
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Application.class, reverseConvertGenerate = false)
public class ApplicationBo extends BaseEntity {

    /**
     * 免测的唯一标识
     */
    @NotNull(message = "免测的唯一标识不能为空", groups = { EditGroup.class ,OtherGroup.class })
    private Long applicationId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 学生id，关联学生表
     */
//    @NotBlank(message = "学生id，关联学生表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberId;

    /**
     * 阳光跑计划id，关联阳光跑计划表
     */
//    @NotBlank(message = "阳光跑计划id，关联阳光跑计划表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scheduleId;

    /**
     * 免测原因
     */
//    @NotBlank(message = "免测原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 附件路径
     */
    private String filePath;

    /**
     * 0:待审核，1:通过，2:不通过
     */
//    @NotBlank(message = "免测原因不能为空", groups = { OtherGroup.class })
    private String approveStatus;

    /**
     * 审批日期
     */

    private Date approveDate;

    /**
     * 审批人，存放id
     */

    private String approver;


    private String studentName;

    private String years;

    private String gender;

    private String semester;

    private String collegeId;

    private String professionalId;

    private String classId;


}
